import { Length } from 'class-validator';

import { ossForms } from '../forms/oss.forms';

const { fileName, filePath } = ossForms;

export class OssUploadLocalFileValidator {
  @Length(fileName.minLength, fileName.maxLength, {
    message: fileName.lengthMessage
  })
  public fileName: string;

  @Length(filePath.minLength, filePath.maxLength, {
    message: filePath.lengthMessage
  })
  public filePath: string;
}
